package samse.app.ebook;

import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;

public interface Reader {
	public int startReader(String path);
	public int startReader(String path, long jumpToPage);
	public void stopReader();
	public int nextPage(Bitmap bmp);
	public int currPage(Bitmap bmp);
	public int prevPage(Bitmap bmp);
	public int gotoPage(long page, Bitmap bmp);

	public class ReaderEvent {
		
		//
		public static final int ACTION_MASK = 0xff;
		
		public static final int ACTION_STARTED = 1;
		public static final int ACTION_READING = 2;
		public static final int ACTION_READ_COMPLETED = 3;
		//public static final int  = 8;  
		//public static final int  = 4;  
		//public static final int  = 5;  

		private int action;
		
		public int getAction() {
			return action;
		}
		
	}
	
	public interface OnReaderEvent {
	    boolean onReaderEvent(int eventCode, ReaderEvent event);
	}
}


